package com.sam.wang.springframework.beans.factory.support;

import com.sam.wang.springframework.beans.BeansException;
import com.sam.wang.springframework.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * 实例化策略
 * @author wangchen
 * @version 1.0
 * @date 2021/9/1 10:07
 **/
public interface InstantiationStrategy {

    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor ctr, Object[] args) throws BeansException;

}
